import 'package:flutter_shop/pages/home/home_router.dart';

///Title:与后端返回的moduleKey映射要跳转的页面 <br/>
///Description: <br/>
///author:xiemiao <br/>
///date: 2020-03-02 <br/>
///version 1.0 <br/>
class JpushModuleKey {
  ///商品详情
  static const String GOODS_DETAIL = "GoodsDetail";

  ///映射moduleKey对应的路由path
  static Map<String, String> _routePathMap = {
    GOODS_DETAIL: HomeRouter.goodDetail,
  };

  ///根据moduleKey获取路由path
  static String getRouterPath(String moduleKey) {
    return _routePathMap[moduleKey];
  }
}
